home *** CD-ROM | disk | FTP | other *** search
- Interface
- Previous: <Grammar File=>GrammarFil> * Next: <Algorithm=>Algorithm> * Up: <Top=>!Root>
-
- #Wrap on
- {fH2}Parser C-Language Interface{f}
-
- The Bison parser is actually a C function named {fCode}yyparse{f}. Here we
- describe the interface conventions of {fCode}yyparse{f} and the other
- functions that it needs to use.
-
- Keep in mind that the parser uses many C identifiers starting with
- {fEmphasis}yy{f} and {fEmphasis}YY{f} for internal purposes. If you use such an
- identifier (aside from those in this manual) in an action or in additional
- C code in the grammar file, you are likely to run into trouble.
-
- #Wrap off
- <Parser Function=>ParserFunc>: How to call {fCode}yyparse{f} and what it returns.
- <Lexical=>Lexical>: You must supply a function {fCode}yylex{f}
- which reads tokens.
- <Error Reporting=>ErrorRepor>: You must supply a function {fCode}yyerror{f}.
- <Action Features=>ActionFeat>: Special features for use in actions.
- #Wrap on
-
-